Optimal. Leaf size=29 \[ \tan ^{-1}\left (\sqrt{4 x+3}+2\right )-\tan ^{-1}\left (2-\sqrt{4 x+3}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0331659, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 4, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {827, 1161, 618, 204} \[ \tan ^{-1}\left (\sqrt{4 x+3}+2\right )-\tan ^{-1}\left (2-\sqrt{4 x+3}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 827
Rule 1161
Rule 618
Rule 204
Rubi steps
\begin{align*} \int \frac{2+x}{\sqrt{3+4 x} \left (1+x^2\right )} \, dx &=2 \operatorname{Subst}\left (\int \frac{5+x^2}{25-6 x^2+x^4} \, dx,x,\sqrt{3+4 x}\right )\\ &=\operatorname{Subst}\left (\int \frac{1}{5-4 x+x^2} \, dx,x,\sqrt{3+4 x}\right )+\operatorname{Subst}\left (\int \frac{1}{5+4 x+x^2} \, dx,x,\sqrt{3+4 x}\right )\\ &=-\left (2 \operatorname{Subst}\left (\int \frac{1}{-4-x^2} \, dx,x,-4+2 \sqrt{3+4 x}\right )\right )-2 \operatorname{Subst}\left (\int \frac{1}{-4-x^2} \, dx,x,4+2 \sqrt{3+4 x}\right )\\ &=-\tan ^{-1}\left (2-\sqrt{3+4 x}\right )+\tan ^{-1}\left (2+\sqrt{3+4 x}\right )\\ \end{align*}
Mathematica [C] time = 0.0196804, size = 41, normalized size = 1.41 \[ \tan ^{-1}\left (\left (\frac{1}{5}+\frac{2 i}{5}\right ) \sqrt{4 x+3}\right )-i \tanh ^{-1}\left (\left (\frac{2}{5}+\frac{i}{5}\right ) \sqrt{4 x+3}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.009, size = 22, normalized size = 0.8 \begin{align*} \arctan \left ( -2+\sqrt{3+4\,x} \right ) +\arctan \left ( 2+\sqrt{3+4\,x} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.53419, size = 28, normalized size = 0.97 \begin{align*} \arctan \left (\sqrt{4 \, x + 3} + 2\right ) + \arctan \left (\sqrt{4 \, x + 3} - 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.67831, size = 45, normalized size = 1.55 \begin{align*} \arctan \left (\frac{2 \, x - 1}{\sqrt{4 \, x + 3}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 42.9989, size = 26, normalized size = 0.9 \begin{align*} \operatorname{atan}{\left (2 - \frac{5}{\sqrt{4 x + 3}} \right )} - \operatorname{atan}{\left (2 + \frac{5}{\sqrt{4 x + 3}} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.43077, size = 28, normalized size = 0.97 \begin{align*} \arctan \left (\sqrt{4 \, x + 3} + 2\right ) + \arctan \left (\sqrt{4 \, x + 3} - 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]